//lodash 中的curry基本使用（多元函数转换成一元函数）
const _ = require('lodash')
function getSum (a, b, c) {
    return a + b + c
}
const curried = _.curry(getSum)
console.log(curried(1, 2, 3))
console.log(curried(1)(2,3))
console.log(curried(1, 2)(3))